package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;

import com.ruoyi.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "remoteAppUserService", value = ServiceNameConstants.APP_USER_SERVICE)
public interface RemoteAppUserService
{
    @GetMapping("/user/info/{phone}")
    public R<LoginUser> info(@PathVariable("phone") String phone,@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
